Patch attached.
Also available from my github if that's easier:https://github.com/jberkus/pgweb
-- --Josh BerkusRed Hat OSAS(any opinions are my own)