jenkinsci/jenkins — pull request #627 by cliffano (2012-11-21 14:16:55+00:00)
Title: Fix X-Text-Size header description

X-Text-Size actually contains the offset to be used for the next start parameter, this header does contain the chunk size itself, and hence the client only needs to pass X-Text-Size header value as the next start.

The value of X-Text-Size header is the return value of writeLogTo method, which is the chunk size + the previous start. https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/LargeText.java#L171

@kohsuke

This means X-Text-Size is not the correct header name to represent the offset value, but I think it's worth keeping it for backward compatibility reason.

I have verified and tested this against 3 different versions of Jenkins while implementing progressive output support in Nestor (Node.js CLI). https://github.com/cliffano/nestor/commit/d7988254d9066ece2774f571a9c395494961a945