stanley-king 4 年之前
父節點
當前提交
f4c3107ba5
共有 2 個文件被更改,包括 10 次插入1 次删除
  1. 1 1
      helper/request_helper.php
  2. 9 0
      test/TestFcgi.php

+ 1 - 1
helper/request_helper.php

@@ -279,7 +279,7 @@ class request_helper
 
             $checker = function ($stype)
             {
-                $formtypes = ['application/x-www-form-urlencoded','text/xml','text/html','multipart/form-data'];
+                $formtypes = ['application/x-www-form-urlencoded','text/xml','text/html','multipart/form-data','application/octet-stream'];
                 foreach ($formtypes as $type) {
                     if(self::start_with($stype,$type)) {
                         return true;

+ 9 - 0
test/TestFcgi.php

@@ -0,0 +1,9 @@
+<?php
+
+
+use PHPUnit\Framework\TestCase;
+
+class TestFcgi extends TestCase
+{
+
+}