This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author orsenthil
Recipients orsenthil, sirosen
Date 2021-05-01.17:18:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619889506.64.0.0294396388523.issue43972@roundup.psfhosted.org>
In-reply-to
Content
Hi Stephen,

Could you give a brief demo of using curl to see the problematic behavior.

I have testing with a version python and saw that without content length, the curl was behaving properly.

```
$mkdir foo
$#add index.html to directory foo
$python -m http.server foo
$ curl -I -L http://0.0.0.0:8082/foo
HTTP/1.0 301 Moved Permanently
Server: SimpleHTTP/0.6 Python/3.6.13+
Date: Sat, 01 May 2021 17:16:14 GMT
Location: /foo/

HTTP/1.0 200 OK
Server: SimpleHTTP/0.6 Python/3.6.13+
Date: Sat, 01 May 2021 17:16:14 GMT
Content-type: text/html
Content-Length: 171
Last-Modified: Sat, 01 May 2021 14:34:48 GMT
```

And 

```
curl --version
curl 7.65.3
```
History
Date User Action Args
2021-05-01 17:18:26orsenthilsetrecipients: + orsenthil, sirosen
2021-05-01 17:18:26orsenthilsetmessageid: <1619889506.64.0.0294396388523.issue43972@roundup.psfhosted.org>
2021-05-01 17:18:26orsenthillinkissue43972 messages
2021-05-01 17:18:26orsenthilcreate