[mythtv-commits] Ticket #12381: Patch for mythdownloadmanager for improved POST redirect compatibility

MythTV noreply at mythtv.org
Tue Feb 17 00:43:07 UTC 2015


#12381: Patch for mythdownloadmanager for improved POST redirect compatibility
-------------------------------------------------+-------------------------
     Reporter:  Gary Buhrmaster                  |      Owner:
  <gary.buhrmaster@…>                            |
         Type:  Patch - Bug Fix                  |     Status:  new
     Priority:  minor                            |  Milestone:  unknown
    Component:  MythTV - General                 |    Version:  Master Head
     Severity:  medium                           |   Keywords:
Ticket locked:  0                                |
-------------------------------------------------+-------------------------
 Patch for mythdownloadmanager for improved POST redirect compatibility

 Per the specs, and de-facto implementations, redirects for POSTs
 are (for status codes 301, 302, and 303) turned into GETs (302 was
 ambiguous in the original spec, and all (well, almost all) browsers turned
 a 302 into a GET, so later an explicit 303 was defined that defined that
 redirected POSTs should be implemented as GETs, but the 302 behavior was
 codified).  A 307 says to rePOST, but it also requires asking the
 submitter to re-verify, so the code will not (automatically) redirect.

 Note that the existing code which attempted to redirect a POST to a POST
 was somewhat flawed (not only by spec), but because the post data was no
 longer available to rePOST with.

 github ref:
 https://github.com/garybuhrmaster/mythtv/commit/9cb68f24aed3d7c67b68672912d55c7f03af6391
 [[BR]]
 github git-am ref:
 https://github.com/garybuhrmaster/mythtv/commit/9cb68f24aed3d7c67b68672912d55c7f03af6391.patch

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12381>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list