Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Oct 2014 at 15:21 UTC
Updated:
27 Oct 2015 at 04:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
murrayw commentedAnd here is a simple patch to fix it.
Comment #2
David_Rothstein commentedMarked #2307371: drupal_http_request treats 201 Created as an error as a duplicate.
Patch looks reasonable on a quick glance.
Comment #3
kenorb commentedThe same problem here.
The 201 response is quite often from PayPoint servers when integrating it with Commerce. It's returning 201 for creating a payment session.
See the following API (API Examples at the bottom), e.g.:
or:
The Drupal returns error attribute in this case, so it's quite tricky to differentiate whether response has been successful or not (without implementing actual custom codes).
Comment #4
David_Rothstein commentedCommitted to 7.x - thanks!