https://bugzilla.wikimedia.org/show_bug.cgi?id=36137

       Web browser: ---
             Bug #: 36137
           Summary: $this->method should be string case agnostic in
                    MwHttpRequest classes
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: General/Unknown
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


Currently, when creating MwHttpRequest objects, the 'method' option/parameter
must match case exactly. This seems unnecessary and caused me to bang my head
against the wall for a while trying to figure out why my requests weren't
POSTing.

Replacing lines like
} elseif ( $this->method == 'POST' ) {
with
} elseif ( strtoupper( $this->method ) == 'POST' ) {
should do the trick and be more developer friendly.

Fix forthcoming.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to