소스 검색

Add "text/plain" header

Anton 10 년 전
부모
커밋
ef18900902
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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