Skip to content

Conversation

doubaokun
Copy link
Contributor

At the moment, method "GETX" is treated as "GET", for example:

<?php 
$server = new \Swoole\Http\Server('0.0.0.0', 9501);
$server->on('request', function ($request, $response) use ($server) {
    $response->header('Content-Type', 'text/plain');
    var_dump($request);
    $response->end("hello\n");
});
$server->start();
curl -X GET1 http://127.0.0.1:9501/ -I -v
curl -X GET2 http://127.0.0.1:9501/ -I -v

@matyhtf matyhtf merged commit a05e4e1 into swoole:master Aug 24, 2019
@doubaokun doubaokun deleted the fix_http_methods branch August 25, 2019 07:06
@twose
Copy link
Member

twose commented Aug 27, 2019

we need more unit tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants