Traditional Internet is focused in communicating people. In contrast, in the Internet of Things (IoT), devices or things communicate among them. However, these devices are usually constrained in terms of processing, storage, batteries, and transmission power. Such limitations have led to reconsider the use of widely used protocols on Internet and to create new protocols designed to constrained scenarios. Although, HTTP, one of the well-known and most used on the Internet application layer protocol, was not designed for constrained scenarios; currently, it is highly used on the IoT. Considering this, it is necessary to adapt the protocol to the restricted scenarios to achieve its properly work with an acceptable performance. In this work, we took HTTP/2, the most recent version of the protocol, as a basis to propose a flow control algorithm oriented to IoT. Through mathematical modeling and simulations, we compare our proposal with another generic and not IoT-oriented flow control algorithm for HTTP/2, NGHTTP/2. The results showed that the proposed algorithm decreased overhead between 25% and 69% in all scenarios. In terms of throughput the results were mixed, in two of three scenarios the reference algorithm was between 3% and 13% faster. In the remaining scenario the throughput was very similar.