update http header for json api