Przeglądaj źródła

Merge branch 'master' of github.com:glock45/swifter

Damian Kołakowski 10 lat temu
rodzic
commit
0f55abce34
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      Sources/HttpResponse.swift

+ 1 - 0
Sources/HttpResponse.swift

@@ -113,6 +113,7 @@ public enum HttpResponse {
             }
         case .OK(let body):
             switch body {
+            case .Text(_)   : headers["Content-Type"] = "text/plain"
             case .Json(_)   : headers["Content-Type"] = "application/json"
             case .Html(_)   : headers["Content-Type"] = "text/html"
             default:break