Skip to content

Why can't i add Transfer-Encoding to header #80

@Cs-Zzl

Description

@Cs-Zzl
	body := strings.NewReader(`xxxxxxxx`)
	opt := grequests.RequestOptions{
		Headers: map[string]string{
			"Content-Type":"multipart/form-data; boundary=xxoo",
			"Transfer-Encoding":"chunked",
		},
		RequestBody:body,
	}

The content of the request initiated by grequests is as follows

POST / HTTP/1.1
Host: xxxx.com
User-Agent: GRequests/0.10
Content-Length: 284
Content-Type: multipart/form-data; boundary=xxoo
Cookie: PHPSESSID=gjj4afltersilid2qhq7f9fcl1
Accept-Encoding: gzip, deflate
Connection: close

xxoo


Transfer-Encoding not found in the request

My question is how to add "Transfer-Encoding" to the header.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions