Similar to the issue in bug #177833, we currently duplicate code in XMLHttpRequest and FetchRequest to normalize the name of an HTTP method. We should add a common helper function and update both classes to make use of it.
Created attachment 322579 [details] Patch I named the common function normalizeHTTPMethod instead of normalizeMethod as I was worried that the latter could be ambigious given that it is a globally scoped function. Let me know if it would be preferred to name the funciton normalizeMethod or if there is a better name for this function.
Comment on attachment 322579 [details] Patch Clearing flags on attachment: 322579 Committed r222819: <http://trac.webkit.org/changeset/222819>
All reviewed patches have been landed. Closing bug.
<rdar://problem/34802449>