lib/httpimagestore/configuration/identify.rb in httpimagestore-1.6.0 vs lib/httpimagestore/configuration/identify.rb in httpimagestore-1.7.0

- old
+ new

@@ -6,11 +6,11 @@ class Identify include ClassLogging extend Stats def_stats( - :total_identify_requests, + :total_identify_requests, :total_identify_requests_bytes ) include ConditionalInclusion @@ -40,10 +40,10 @@ log.info "identifying '#{@image_name}'" Identify.stats.incr_total_identify_requests Identify.stats.incr_total_identify_requests_bytes image.data.bytesize - id = client.identify(image.data) + id = client.with_headers(request_state.headers).identify(image.data) image.mime_type = id.mime_type if id.mime_type image.width = id.width if id.width image.height = id.height if id.height log.info "image '#{@image_name}' identified as '#{id.mime_type}' #{image.width}x#{image.height}"