Permalink
Browse files

Fix imports in r.m.file-info.

  • Loading branch information...
1 parent 30c08e3 commit a293666eacf5cdd6e1df6369de37a5a1b8b71652 @mmcgrana committed Nov 1, 2010
Showing with 7 additions and 7 deletions.
  1. +7 −7 ring-core/src/ring/middleware/file_info.clj
View
14 ring-core/src/ring/middleware/file_info.clj
@@ -1,8 +1,8 @@
(ns ring.middleware.file-info
"Augment Ring File responses."
- (:use ring.util.response)
+ (:require [ring.util.response :as res])
(:import java.io.File
- [java.util Date Locale TimeZone]
+ (java.util Date Locale TimeZone)
java.text.SimpleDateFormat))
(def ^{:private true} base-mime-types
@@ -103,12 +103,12 @@
file-length (.length ^File body)
lmodified (Date. (.lastModified ^File body))
response (-> response
- (content-type file-type)
- (header "Last-Modified"
+ (res/content-type file-type)
+ (res/header "Last-Modified"
(.format (make-http-format) lmodified)))]
(if (not-modified-since? req lmodified)
- (-> response (status 304)
- (header "Content-Length" 0)
+ (-> response (res/status 304)
+ (res/header "Content-Length" 0)
(assoc :body ""))
- (-> response (header "Content-Length" file-length))))
+ (-> response (res/header "Content-Length" file-length))))
response)))))

0 comments on commit a293666

Please sign in to comment.