#35664: 204 in HTTP or HTTPS
----------------------------+-----------------------------------------
Reporter: oceanusXXD | Type: Uncategorized
Status: new | Component: Uncategorized
Version: 3.2 | Severity: Normal
Keywords: 204,http, | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+-----------------------------------------
when i use react and Django to create my app, when i set response with
status code 204 with some content in Chrome, if the url begin with https,
it will response pending on the web and it do not return any thing, but
when i use http://localhost:8080, it will return 204 with other content,
Why is it that this non-compliant request can get a response over HTTP,
but is restricted over HTTPS?I use http://localhost:8080 and a cloud
server in the same environment, my function is**. return HttpResponse(
json.dumps({'message':'delete successfully '}),
content_type='application/json',status=204)** ,when i use curl ,the data
will be deleted in database and the program will over, but when i use curl
to request the cloud server (https), the data also be deleted, but the
program without any response, when I debug in the chrome, i saw the status
and size is “(pending)”,
--
Ticket URL: <https://code.djangoproject.com/ticket/35664>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701913511672f-6791c104-362a-4559-8763-66c7707113c7-000000%40eu-central-1.amazonses.com.