diff --git a/lib/middleware/lrdd.js b/lib/middleware/lrdd.js
index <HASH>..<HASH> 100644
--- a/lib/middleware/lrdd.js
+++ b/lib/middleware/lrdd.js
@@ -55,8 +55,8 @@ module.exports = function lrdd(fn, options) {
       
       var format = options.format;
       if (req.headers) {
-        if (req.headers['content-type'] == 'application/xrd+xml') { format = 'xml' }
-        else if (req.headers['content-type'] == 'application/json') { format = 'json' }
+        if (req.headers['accept'] == 'application/xrd+xml') { format = 'xml' }
+        else if (req.headers['accept'] == 'application/json') { format = 'json' }
       }
       
       if (format === 'json') {
Fix to use accept header for content negotiation.