Closed Bug 1173408 Opened 10 years ago Closed 10 years ago

Editing and resending request erroneously sets Content-Length: "0"

Categories

(DevTools :: Netmonitor, defect)

38 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1009748

People

(Reporter: Matthew.Holt, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Firefox/38.0 Build ID: 20150525141253 Steps to reproduce: 1. With dev tools open to the Network tab, go to any URL to which you will make a POST request. 2. Click the request, then click the "Edit and Resend" button. Change the method to POST and enter some data in the "Request body" field. 3. Click "Send" to send the request. Notice the Content-Length of the field is correct. 4. Refresh the page. Click the request again, and then click "Edit and Resend". Notice that the Request Body field retained its contents. Change the method to POST if it isn't already and click "Send". 5. Notice that the "Content-Length" field now contains "0" instead of proper value. This causes POST requests expecting a body fail. Actual results: "Content-Length" field has value of "0" Expected results: "Content-Length" field should have correct length of request body.
Component: Untriaged → Developer Tools: Netmonitor
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.