Przeglądaj źródła

HttpResponseBody.HTML is undefined

Soutaro Matsumoto 10 lat temu
rodzic
commit
c5d29e5b92
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Common/HttpHandlers.swift

+ 1 - 1
Common/HttpHandlers.swift

@@ -74,7 +74,7 @@ public class HttpHandlers {
                             var response = "<h3>\(filePath)</h3></br><table>"
                             response += files.map({ "<tr><td><a href=\"\(request.url)/\($0)\">\($0)</a></td></tr>"}).joinWithSeparator("")
                             response += "</table>"
-                            return HttpResponse.OK(.HTML(response))
+                            return HttpResponse.OK(.Html(response))
                         } catch  {
                             return HttpResponse.NotFound
                         }