Commit 06da34e7 authored by David Lawrence's avatar David Lawrence

Bug 1051056: The REST API needs to be versioned so that new changes can be made…

Bug 1051056: The REST API needs to be versioned so that new changes can be made that do not break compatibility - Fix issue where PUT requests were treated as GET and failed when updating a bug, etc.
parent a6d74986
...@@ -260,7 +260,8 @@ sub _params_check { ...@@ -260,7 +260,8 @@ sub _params_check {
} }
} }
if ($self->request->method eq 'POST') { if ($self->request->method eq 'POST'
|| $self->request->method eq 'PUT') {
# CSRF is possible via XMLHttpRequest when the Content-Type header # CSRF is possible via XMLHttpRequest when the Content-Type header
# is not application/json (for example: text/plain or # is not application/json (for example: text/plain or
# application/x-www-form-urlencoded). # application/x-www-form-urlencoded).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment